<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>头条热门视频 - 响应式布局</title>
</head>
<style>
    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        padding: 0;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        background-color: #f5f5f5;
    }

    .hot-videos{
        width: 90%;
        max-width: 1200px;
        min-width: 320px;
        height: auto;
        min-height: 600px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        margin: 20px auto;
        position: relative;
        background-color: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .hot-videos .hot-header{
        width: 100%;
        height: 60px;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .hot-videos .hot-header span{
        font-size: 22px;
        font-weight: bold;
        color: #fff;
        position: relative;
        padding-left: 35px;
        margin-left: 20px;
    }

    .hot-videos .hot-header span::before{
        width: 24px;
        height: 24px;
        content: '';
        background: url("/src/img/flex/icon-play.png") no-repeat center;
        background-size: cover;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        position: absolute;
        margin-right: 3px;
        filter: brightness(0) invert(1);
    }

    .hot-videos .hot-header a{
        font-size: 16px;
        color: #fff;
        text-decoration: none;
        position: relative;
        padding: 8px 16px;
        border-radius: 20px;
        background-color: rgba(255,255,255,0.2);
        transition: all 0.3s ease;
    }

    .hot-videos .hot-header a:hover{
        background-color: rgba(255,255,255,0.3);
        transform: translateY(-2px);
    }

    .hot-videos .hot-header a::before{
        width: 16px;
        height: 16px;
        content: '';
        background: url("/src/img/flex/icon-sx2.png") no-repeat center;
        background-size: cover;
        position: absolute;
        left: -20px;
        top: 50%;
        transform: translateY(-50%);
        filter: brightness(0) invert(1);
    }

    .hot-videos .hot-list{
        width: 100%;
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .hot-item{ 
        width: 100%;
        height: auto;
        min-height: 120px;
        display: flex;
        gap: 15px;
        padding: 15px;
        border-radius: 8px;
        transition: all 0.3s ease;
        border: 1px solid transparent;
    }

    .hot-item:hover{
        background-color: #f8f9fa;
        border-color: #e9ecef;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }

    .hot-item img{
        width: 140px;
        height: 105px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

    .hot-item .content{
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hot-item .content p{
        margin: 0 0 8px 0;
        font-size: 16px;
        color: #333;
        line-height: 1.4;
        font-weight: 500;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .comment{
        color: #F04142;
        font-size: 12px;
        background-color: #FFF2F2;
        border-radius: 12px;
        padding: 4px 8px;
        display: inline-block;
        margin-bottom: 8px;
        font-weight: 500;
    }

    .video-info{
        width: 100%;
        height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: auto;
    }

    .video-info span{
        color: #999999;
        font-size: 13px;
        line-height: 1.4;
    }

    /* 平板端适配 */
    @media screen and (max-width: 1024px) and (min-width: 768px) {
        .hot-videos {
            width: 95%;
            max-width: 800px;
        }
        
        .hot-videos .hot-header {
            height: 55px;
            padding: 0 15px;
        }
        
        .hot-videos .hot-header span {
            font-size: 20px;
            padding-left: 30px;
        }
        
        .hot-list {
            padding: 15px;
            gap: 15px;
        }
        
        .hot-item {
            padding: 12px;
            gap: 12px;
        }
        
        .hot-item img {
            width: 120px;
            height: 90px;
        }
    }

    /* 移动端适配 */
    @media screen and (max-width: 767px) {
        .hot-videos {
            width: 98%;
            margin: 10px auto;
            border-radius: 6px;
        }
        
        .hot-videos .hot-header {
            height: 50px;
            padding: 0 15px;
            flex-direction: column;
            height: auto;
            padding: 15px;
            gap: 10px;
        }
        
        .hot-videos .hot-header span {
            font-size: 18px;
            padding-left: 28px;
            margin: 0;
        }
        
        .hot-videos .hot-header a {
            font-size: 14px;
            padding: 6px 12px;
        }
        
        .hot-list {
            padding: 15px;
            gap: 12px;
        }
        
        .hot-item {
            flex-direction: column;
            padding: 12px;
            gap: 10px;
            text-align: center;
        }
        
        .hot-item img {
            width: 100%;
            height: 180px;
            border-radius: 8px;
        }
        
        .hot-item .content {
            text-align: left;
        }
        
        .hot-item .content p {
            font-size: 15px;
            margin-bottom: 10px;
        }
        
        .comment {
            margin-bottom: 10px;
        }
        
        .video-info {
            flex-direction: column;
            align-items: flex-start;
            gap: 5px;
        }
        
        .video-info span:nth-child(2) {
            align-self: flex-end;
        }
    }

    /* 超小屏幕适配 */
    @media screen and (max-width: 480px) {
        .hot-videos {
            width: 100%;
            margin: 0;
            border-radius: 0;
            border-left: none;
            border-right: none;
        }
        
        .hot-videos .hot-header {
            padding: 12px 15px;
        }
        
        .hot-videos .hot-header span {
            font-size: 16px;
            padding-left: 25px;
        }
        
        .hot-videos .hot-header span::before {
            width: 20px;
            height: 20px;
        }
        
        .hot-list {
            padding: 10px;
            gap: 10px;
        }
        
        .hot-item {
            padding: 10px;
        }
        
        .hot-item img {
            height: 160px;
        }
        
        .hot-item .content p {
            font-size: 14px;
        }
        
        .comment {
            font-size: 11px;
            padding: 3px 6px;
        }
        
        .video-info span {
            font-size: 12px;
        }
    }

    /* 横屏模式优化 */
    @media screen and (orientation: landscape) and (max-height: 500px) {
        .hot-videos {
            height: auto;
            min-height: auto;
        }
        
        .hot-videos .hot-header {
            height: 40px;
            padding: 0 15px;
        }
        
        .hot-list {
            padding: 10px;
            gap: 10px;
        }
        
        .hot-item {
            min-height: 80px;
            padding: 8px;
        }
        
        .hot-item img {
            width: 100px;
            height: 75px;
        }
    }

    /* 高分辨率屏幕优化 */
    @media screen and (min-resolution: 2dppx) {
        .hot-item img {
            image-rendering: -webkit-optimize-contrast;
            image-rendering: crisp-edges;
        }
    }

    /* 深色模式支持 */
    @media (prefers-color-scheme: dark) {
        body {
            background-color: #1a1a1a;
            color: #fff;
        }
        
        .hot-videos {
            background-color: #2d2d2d;
            border-color: #444;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        
        .hot-videos .hot-header {
            border-bottom-color: #444;
        }
        
        .hot-item:hover {
            background-color: #3a3a3a;
            border-color: #555;
        }
        
        .hot-item .content p {
            color: #e0e0e0;
        }
        
        .video-info span {
            color: #bbb;
        }
    }
</style>
<body>
    <div class="hot-videos">
        <div class="hot-header">
            <span>热门视频</span>
            <a href="">换一换</a>
        </div>
        <div class="hot-list">
            <div class="hot-item">
                <img src="/src/img/flex/toutiao-01.jpeg" alt="热门视频1">
                <div class="content">
                    <p>司马南：中国与俄罗斯的底线底线底线</p>
                    <span class="comment">1万评论</span>
                    <div class="video-info">
                        <span>10.5万次播放</span>
                        <span>2天前</span>
                    </div>
                </div>
            </div>
            <div class="hot-item">
                <img src="/src/img/flex/toutiao-02.jpeg" alt="热门视频2">
                <div class="content">
                    <p>无论腌什么鱼，最忌放盐 和料酒腌制，大厨教你…</p>
                    <span class="comment">1.5万评论</span>
                    <div class="video-info">
                        <span>9.5万次播放</span>
                        <span>2天前</span>
                    </div>
                </div>
            </div>
            <div class="hot-item">
                <img src="/src/img/flex/toutiao-03.jpeg" alt="热门视频3">
                <div class="content">
                    <p>战后阿富汗，女孩的"愿 望"竟是这个，家中…</p>
                    <span class="comment">1万评论</span>
                    <div class="video-info">
                        <span>10.5万次播放</span>
                        <span>2天前</span>
                    </div>
                </div>
            </div>
            <div class="hot-item">
                <img src="/src/img/flex/toutiao-04.jpeg" alt="热门视频4">
                <div class="content">
                    <p>上海抗议第一线！</p>
                    <span class="comment">1万评论</span>
                    <div class="video-info">
                        <span>10.5万次播放</span>
                        <span>2天前</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>